<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <div th:insert="base :: resource"></div>
</head>
<body>
<nav th:insert="base :: nav"></nav>
<div class="col-md-4 col-md-offset-4">
    <table class="table table-striped">
        <tr>
            <th>序号</th>
            <th>用户名</th>
            <th>密码</th>
        </tr>
        <tr th:each="user,status:${userList}">
            <td th:text="${status.count}">1</td>
            <td th:text="${user.userName}"></td>
            <td th:text="${user.password}"></td>
        </tr>
    </table>
</div>
</body>
</html>